package yangchen;

public class Goods {
    String name;
    int id;
    int chenben=0,shoujia;
    int shenyu;

    public Goods() {
    }

    public Goods(String name, int id, int chenben, int shoujia, int shenyu) {
        this.name = name;
        this.id = id;
        this.chenben = chenben;
        this.shoujia = shoujia;
        this.shenyu = shenyu;
    }
    public Goods(String name, int id) {
        this.name = name;
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setChenben(int chenben) {
        this.chenben = chenben;
    }

    public void setShoujia(int shoujia) {
        this.shoujia = shoujia;
    }

    public void setShenyu(int shenyu) {
        this.shenyu = shenyu;
    }

    String getname(){
        return name;
    }
    int getid(){
        return id;
    }
    int getchenben(){
        return chenben;
    }
    int getshoujia(){
        return shoujia;
    }
    int getshenyu(){
        return shenyu;
    }

    int zjj(){
        return shenyu*chenben;
    }
}